package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author a
 * @since 2019-12-11
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_event")
@ApiModel(value="TbEvent对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class TbEvent extends Model<TbEvent> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "设备ID")
    private Integer deviceId;

    private String enventContent;

    @ApiModelProperty(value = "事件标题")
    private String enventTitle;

    @ApiModelProperty(value = "处理人ID")
    private Integer crewId;

    @ApiModelProperty(value = "处理人名称")
    private String crewName;

    @ApiModelProperty(value = "处理人电话")
    private String crewPhone;

    @ApiModelProperty(value = "1-待处理,2-已处理")
    private Integer crewType;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    @Override
    protected Long  pkVal() {
        return id;
    }
}
